package com.iseastar.guojiang.model;

import java.io.Serializable;

/**
 * Created by joker on 2017/7/25.
 */
public class PrintParcelBean implements Serializable {
    /**
     * bagCode : 4000000004
     * category : 日用品
     * checkCode : 546204
     * createTime : 2017-06-26 16:55:00
     * expressCompanyName : 圆通快递
     * expressNumber : 858691100066
     * orderId : 129760
     * parcelImgUrl : http://files.shouhuobao.com/product/13987214756153369_1498188143.462761.jpg
     * parcelType : 3
     * postTime : 2017-06-26 16:58:07
     * senderPhone : 222294
     * parcelStatus 19
     */
    private String bagCode;
    private String category;
    private String checkCode;
    private String createTime;
    private String expressCompanyName;
    private String expressNumber;
    private int orderId;
    private String parcelImgUrl;
    private int parcelType;
    private String postTime;
    private String senderPhone;
    private int parcelStatus;//19揽件成功 5 已入库  6 出库  200 签收

    public String getBagCode() {
        return bagCode;
    }

    public void setBagCode(String bagCode) {
        this.bagCode = bagCode;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getExpressCompanyName() {
        return expressCompanyName;
    }

    public void setExpressCompanyName(String expressCompanyName) {
        this.expressCompanyName = expressCompanyName;
    }

    public String getExpressNumber() {
        return expressNumber;
    }

    public void setExpressNumber(String expressNumber) {
        this.expressNumber = expressNumber;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getParcelImgUrl() {
        return parcelImgUrl;
    }

    public void setParcelImgUrl(String parcelImgUrl) {
        this.parcelImgUrl = parcelImgUrl;
    }

    public int getParcelType() {
        return parcelType;
    }

    public void setParcelType(int parcelType) {
        this.parcelType = parcelType;
    }

    public String getPostTime() {
        return postTime;
    }

    public void setPostTime(String postTime) {
        this.postTime = postTime;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone;
    }

    public int getParcelStatus() {
        return parcelStatus;
    }

    public void setParcelStatus(int parcelStatus) {
        this.parcelStatus = parcelStatus;
    }

    public String getParcelStatusStr() {
        if (parcelStatus == 19) {
            return "已揽收";
        } else if (parcelStatus == 5) {
            return "已入库";
        } else if (parcelStatus == 6) {
            return "已出库";
        } else if (parcelStatus == 200) {
            return "已签收";
        } else {
            return "";
        }
    }
}
